<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app"></div>
    <!-- 1、CDN方式引入 -->
    <!-- <script src="https://unpkg.com/vue@next"></script> -->

    <!-- 2、本地引入vue.js文件 -->
    <script src="../../js/vue.js"></script>
    <script>
        const dcl = {
            template: '<h2>{{message}}</h2>',
            data() {
                return {
                    message: 'hello world'
                }
            }
        }
        const app = Vue.createApp(dcl)
        app.mount('#app');
    </script>
</body>

</html>